
add_compile_definitions(DF_STD_V=0.1.0) # 数据文件标准

file(GLOB SQL_SOURCE *.cpp)

# 依赖项
find_package(SQLite3 REQUIRED) # sqlite
find_package(Qt6 REQUIRED COMPONENTS Core)

if(CMAKE_SYSTEM_NAME MATCHES "LINUX")
    target_compile_definitions(LINUX)
endif()

add_library(Bmsql SHARED ${SQL_SOURCE})

target_link_libraries(Bmsql PRIVATE SQLite::SQLite3 Qt6::Core)
